home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EuroCD 3
/
EuroCD 3.iso
/
Programming
/
vbcc
/
machines
/
amigappc
/
libsrc
/
math
/
fmod.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1998-06-24
|
137 b
|
11 lines
#include <math.h>
double fmod(double x,double y)
{
double a=x/y;
if(a>=0)
return x-y*floor(a);
else
return x-y*ceil(a);
}